package cn.huyanbing.middleware.thread.research;

import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;

/**
 * @BelongProject middleware
 * @BelongPackage cn.huyanbing.middleware.thread.research
 * @Description TODO
 * @ClassName SingleThreadExecutorTest
 * @Author huyangbing
 * @Date 2024/11/20 19:44
 * @Version 1.0.0
 */
public class SingleThreadExecutorTest {



   private static final   ExecutorService pool= Executors.newSingleThreadExecutor();

    public static void main(String[] args) {

        pool.submit(()->{
            try{
                String qq=pool.submit(()->"QQ").get();
                System.out.println(qq);

                

            }catch(Exception e){

            }
        });
    }
}
